Skip to content

Add login and tool commands (search, image, music, video, x)#13

Merged
emilioacc merged 3 commits intomainfrom
feat/tool-commands
Jan 26, 2026
Merged

Add login and tool commands (search, image, music, video, x)#13
emilioacc merged 3 commits intomainfrom
feat/tool-commands

Conversation

@emilioacc
Copy link
Contributor

Summary

  • Add login command to save ATXP connection string to ~/.atxp/config
  • Add tool commands that wrap @atxp/client: search, image, music, video, x
  • Move demo and create commands under dev subcommand (with backwards compatibility)

New Commands

Command Description Server
npx atxp login Save connection string from accounts.atxp.ai -
npx atxp search <query> Web search search.mcp.atxp.ai
npx atxp image <prompt> Generate image image.mcp.atxp.ai
npx atxp music <prompt> Generate music music.mcp.atxp.ai
npx atxp video <prompt> Generate video video.mcp.atxp.ai
npx atxp x <query> Search X/Twitter x-live-search.mcp.atxp.ai

Test plan

  • Verify npx atxp help shows new commands
  • Verify npx atxp login prompts for connection string and saves to ~/.atxp/config
  • Verify tool commands show "Not logged in" error without credentials
  • Verify npx atxp dev demo and npx atxp dev create work
  • Verify legacy npx atxp demo still works

🤖 Generated with Claude Code

emilioacc and others added 3 commits January 26, 2026 11:27
- Add `login` command to save ATXP connection string to ~/.atxp/config
- Add tool commands that wrap @atxp/client:
  - `search <query>` - web search via search.mcp.atxp.ai
  - `image <prompt>` - image generation via image.mcp.atxp.ai
  - `music <prompt>` - music generation via music.mcp.atxp.ai
  - `video <prompt>` - video generation via video.mcp.atxp.ai
  - `x <query>` - X/Twitter search via x-live-search.mcp.atxp.ai
- Move demo and create commands under `dev` subcommand
- Maintain backwards compatibility for `npx atxp demo` and `npx atxp create`
- Update help text with new command structure

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Update index.test.ts with tests for dev subcommand and tool argument parsing
- Add login.test.ts for config file format and login options
- Add call-tool.test.ts for server mapping and result parsing
- Add commands/commands.test.ts for all tool commands (search, image, music, video, x)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Wrap case block in braces to fix no-case-declarations error in index.ts
- Remove unused fs import from login.test.ts

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@emilioacc emilioacc merged commit 85f047f into main Jan 26, 2026
1 check passed
@emilioacc emilioacc deleted the feat/tool-commands branch January 26, 2026 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant